ConNectorFormCtl = Ext.extend(FormCtl, {

			configItems : function(config) {

				var items = {
					id : this.getHiddenField('id'),
					connectorname : this.getTextField('姓名', 'connectorname'),
					connectorid : this.getTextField('编号', 'connectorid'),
					possition : this.getTextField('职务', 'possition'),
					email : this.getTextField('电邮', 'email'),
					tel : this.getTextField('电话', 'tel'),
					mb : this.getTextField('手机', 'mb'),
					age : this.getTextField('年龄', 'age'),
					sex : this.getTextField('性别', 'sex'),
					hobe : this.getTextField('特点', 'hobe'),
					notes : this.getTextField('备注', 'notes'),
					customerid : this.getHiddenField('customerid')
				};

				var groupItems = [items.id, items.customerid, {
					columnWidth : .3,
					layout : 'form',// 第一列里面内容就是form排序了,从上到下
					items : [items.connectorname, items.email, items.age,
							items.notes]
				}, {
					columnWidth : .4,
					layout : 'form',// 第一列里面内容就是form排序了,从上到下
					items : [items.connectorid, items.tel, items.sex]
				}, {
					columnWidth : .3,
					layout : 'form',// 第一列里面内容就是form排序了,从上到下
					items : [items.possition, items.mb, items.hobe]
				}];

				config.items = groupItems;
				this.items = items;

				return config;

			},
			getCommonConfig : function() {

				var config = {
					split : true,
					autoScroll : true,
					region : 'center',
					layout : 'column',
					labelAlign : 'right',
					labelWidth : 100,
					frame : true
				};

				return config;

			},
			getLoadUrl : function() {
				return 'connector.do?m=read';

			},
			getLoadParams : function(id) {
				return {
					id : id
				}
			},
			getSubmitUrl : function() {

				return 'connector.do?m=create';

			},
			getParams : function(config) {

//				var items = this.getAllItems();
//
//				var params = {
//					itemlist : Ext.encode(items)
//				};
//
//				config.params = params

				return config;

			},
			getAllItems : function() {

				var oigc = cf.getC('oigc');
				var records = oigc.getSelectList();

				var idList = [];
				for (var i = 0; i < records.length; i++) {
					idList.push({
								id : records[i].get('id')
							});
				}

				return idList;

			},
			submitSuccess : function() {
				
			}

		});
